home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
g_man
/
cat3
/
standard
/
blink.z
/
blink
Wrap
Text File
|
1998-10-20
|
3KB
|
67 lines
bbbblllliiiinnnnkkkk((((3333GGGG)))) bbbblllliiiinnnnkkkk((((3333GGGG))))
NNNNAAAAMMMMEEEE
bbbblllliiiinnnnkkkk - changes a color map entry at a selectable rate
CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
vvvvooooiiiidddd bbbblllliiiinnnnkkkk((((rrrraaaatttteeee,,,, iiii,,,, rrrreeeedddd,,,, ggggrrrreeeeeeeennnn,,,, bbbblllluuuueeee))))
sssshhhhoooorrrrtttt rrrraaaatttteeee;;;;
CCCCoooolllloooorrrriiiinnnnddddeeeexxxx iiii;;;;
sssshhhhoooorrrrtttt rrrreeeedddd,,,, ggggrrrreeeeeeeennnn,,,, bbbblllluuuueeee;;;;
PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
_r_a_t_e expects the number of vertical retraces per blink. On the
standard monitor, there are 60 vertical retraces per second.
_i expects an index into the current color map. The color defined
at that index is the color that is blinked (alternated).
_r_e_d expects the red value of the alternate color that blinks against
the color selected from the color map by the _i parameter.
_g_r_e_e_n expects the green value of the alternate color that blinks
against the color selected from the color map by the _i parameter.
_b_l_u_e expects the blue value of the alternate color that blinks against
the color selected from the color map by the _i parameter.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
bbbblllliiiinnnnkkkk alternates the color located at index _i in the current color map
with the color defined by the parameters _r_e_d, _g_r_e_e_n, and _b_l_u_e. The rate
at which the two colors are alternated is set by the _r_a_t_e parameter. The
maximum number of color map entries that can be blinking simultaneously
on a screen is returned by the ggggeeeettttggggddddeeeesssscccc inquiry GD_NBLINKS.
The length of time between retraces varies according to the monitor used.
On the standard monitor, there are 60 retraces per second, so a _r_a_t_e of
60 would cause the color to change once every second.
To terminate blinking and restore the original color for a single color
map entry, call bbbblllliiiinnnnkkkk for that entry with _r_a_t_e set to 0.
To terminate all blinking colors simultaneously, call bbbblllliiiinnnnkkkk with _r_a_t_e set
to -1. When _r_a_t_e is -1, the other parameters are ignored.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
getgdesc, mapcolor
NNNNOOOOTTTTEEEESSSS
This routine is available only in immediate mode.
BBBBUUUUGGGGSSSS
bbbblllliiiinnnnkkkk always operates on the colormap of the normal framebuffer,
regardless of the current drawmode. It is not possible to blink overlay
or underlay colors.
PPPPaaaaggggeeee 1111